{extend name="layout" /}
{block name="content"}
<!-- Content Header (Page header) -->
<section class="content" style="padding-top:0;padding-bottom: 0">
<div class="row" style="padding-bottom: 0">
  <div class="box" style="margin-bottom: 0">
    <div class="box-header with-border">
      <h3 class="box-title"><i class="fa fa-building-o"></i> 插件管理</h3>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <div class="row">
          <div class="col-xs-3">
            <form>
            <div class="input-group input-group-sm">
                <input type="text" class="form-control input-sm" name="keywords">
                <span class="input-group-btn">
                  <button type="button" class="btn btn-info btn-flat searchBtn" pageid="pages">搜  索</button>
                  <!-- <button type="button" class="btn btn-danger btn-flat cocoModal" isForm url="{:url('search')}">高级搜索</button> -->
                </span>
            </div>
            <input type="hidden" name="fieldset" value="keywords-name|dirname-like">
            </form>
          </div>
          <div class="col-xs-9" style="text-align: right">
            <button type="button" class="btn btn-success btn-sm cocoModal" isForm url="{:url('add')}" title="新增项目"><i class="fa fa-plus"></i> 新增</button>
            <button type="button" class="btn btn-info btn-sm cocoModal" checkItem="1:1" isForm url="{:url('edit')}"><i class="fa fa-edit"></i> 编辑</button>
            <button type="button" class="btn btn-danger btn-sm cocoAjax" confirm="确定要删除吗？" checkItem="1:0" ajaxUrl="{:url('delete')}"><i class="fa fa-remove"></i> 删除</button>
            <button type="button" class="btn btn-default btn-sm cocoAjax" confirm="确定要更新缓存吗？" ajaxUrl="{:url('cache')}"><i class="fa fa-retweet"></i> 更新缓存</button>
          </div>
        </div>
      <table class="layui-table" lay-even>
        <colgroup>
          <col width="35">
          <col width="30">
        </colgroup>
        <thead>
        <tr>
          <th><input type="checkbox"/></th>
          <th field="id">ID</th>
          <th field="title">名称</th>
          <th field="name">标识</th>
          <th field="description">描述</th>
          <th field="status">状态</th>
          <th field="author">作者</th>
          <th field="version">版本</th>
        </tr>
        </thead>
        <tbody id="datalist">
        </tbody>
      </table>
    </div>
    <!-- /.box-body -->
    <div id="pages" class="box-footer clearfix pages" style="text-align: center;padding:0"></div>
  </div>
</div>
</section>
<!-- /.content -->
{/block}